#include "LinearFunction.h"

NeuralPlusPlus::Core::LearningRateFunctions::LinearFunction::LinearFunction( double initialLearningRate, double finalLearningRate ) : AbstractFunction(initialLearningRate, finalLearningRate)
	{

	}

double NeuralPlusPlus::Core::LearningRateFunctions::LinearFunction::GetLearningRate( int currentIteration, int trainingEpochs )
	{
	return InitialLearningRate + (FinalLearningRate - InitialLearningRate) * currentIteration / trainingEpochs;
	}